package com.ruoyi.system.domain;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.springframework.web.multipart.MultipartFile;

/**
 * 公司基本信息对象 it_company
 *
 * @author ruoyi
 * @date 2022-01-26
 */
public class ItCompany extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private String itId;

    /**
     * 公司名称
     */
    @Excel(name = "公司名称")
    private String itName;

    /**
     * 公司地址
     */
    @Excel(name = "公司地址")
    private String itAddress;

    /**
     * 内容
     */
    @Excel(name = "内容")
    private String itContent;

    /**
     * 图片路径(多个图片拼接用逗号隔开)
     */
    @Excel(name = "图片路径(多个图片拼接用逗号隔开)")
    private String itImg;
    private String filePath;

    /**
     * 话题id(用逗号拼接的话题id)
     */
    @Excel(name = "话题id(用逗号拼接的话题id)")
    private String itSubjectId;
    private String itTopic;

    /**
     * 状态(0删除1未删除)
     */
    @Excel(name = "状态(0删除1未删除)")
    private Integer isDeleted;

    /**
     * 添加时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "添加时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createTime;
    private String createTimeStr;

    //二进制图片
    List<MultipartFile> file;

    //点赞数
    private int supportNum;

    //评论数
    private int commentNum;

    //查询条件
    private String query;

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public String getQuery() {
        return query;
    }

    public void setQuery(String query) {
        this.query = query;
    }

    public int getSupportNum() {
        return supportNum;
    }

    public void setSupportNum(int supportNum) {
        this.supportNum = supportNum;
    }

    public int getCommentNum() {
        return commentNum;
    }

    public void setCommentNum(int commentNum) {
        this.commentNum = commentNum;
    }

    public List<MultipartFile> getFile() {
        return file;
    }

    public void setFile(List<MultipartFile> file) {
        this.file = file;
    }

    public void setItId(String itId) {
        this.itId = itId;
    }

    public String getItId() {
        return itId;
    }

    public void setItName(String itName) {
        this.itName = itName;
    }

    public String getItName() {
        return itName;
    }

    public void setItAddress(String itAddress) {
        this.itAddress = itAddress;
    }

    public String getItAddress() {
        return itAddress;
    }

    public String getCreateTimeStr() {
        return createTimeStr;
    }

    public void setCreateTimeStr(String createTimeStr) {
        this.createTimeStr = createTimeStr;
    }

    public void setItContent(String itContent) {
        this.itContent = itContent;
    }

    public String getItContent() {
        return itContent;
    }

    public void setItImg(String itImg) {
        this.itImg = itImg;
    }

    public String getItImg() {
        return itImg;
    }

    public void setItSubjectId(String itSubjectId) {
        this.itSubjectId = itSubjectId;
    }

    public String getItSubjectId() {
        return itSubjectId;
    }

    public Integer getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }

    public String getItTopic() {
        return itTopic;
    }

    public void setItTopic(String itTopic) {
        this.itTopic = itTopic;
    }

    @Override
    public Date getCreateTime() {
        return createTime;
    }

    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("itId", getItId())
                .append("itName", getItName())
                .append("itAddress", getItAddress())
                .append("itContent", getItContent())
                .append("itImg", getItImg())
                .append("itSubjectId", getItSubjectId())
                .append("isDeleted", getIsDeleted())
                .append("createTime", getCreateTime())
                .toString();
    }
}
